#! /usr/bin/env python
# -*- coding: UTF-8 -*-
from frame import *
import sys


def inputP(key=None):
    if len(sys.argv) > 1:
        para = sys.argv[1]
        return para
    elif key:
        return key
    else:
        print("请输入执行参数")
        sys.exit()

if __name__ == '__main__':
    setting.run_case = {Tag.ALL}  # 运行全部测试用例
    runner = TestRunner()
    # runner.add_case_dir(switch_run_module(inputP()))
    runner.add_case_dir(switch_run_module("kupu_smoke"))
    runner.run_test(report_title='接口自动化测试报告')
